/*
 * @Author: your name
 * @Date: 2021-07-01 09:47:02
 * @LastEditTime: 2021-07-01 19:37:55
 * @LastEditors: Please set LastEditors

/**
 * @param {string} path
 * @returns {Boolean}
 */
export function isExternal(path) {
  return /^(https?:|mailto:|tel:)/.test(path)
}

/**
 * @description: 手机号校验
 * @param {*} str
 * @return {Boolean}
 */
export function valiMobile(mobile) {
  return /^1[3-9]\d{9}$/.test(mobile) // 校验手机号
}
